<template>
    <div>
        <van-tabbar v-model="$route.meta.num">
            <van-tabbar-item to="/home" icon="home-o">首页</van-tabbar-item>
            <van-tabbar-item to="/topic" icon="search">专题</van-tabbar-item>
            <van-tabbar-item to="/type" icon="friends-o">分类</van-tabbar-item>
            <van-tabbar-item to="/cart" icon="setting-o">购物车</van-tabbar-item>
            <van-tabbar-item to="/me" icon="setting-o">我的</van-tabbar-item>
        </van-tabbar>
    </div>
</template>

<script>
export default {
    data () {
        return {
            // 控制状态
            // active:0
        }
    }
}
</script>
 
<style lang = "less" scoped>
    
</style>